<template>
  <h2>强制更新：demo13-demo01-force-update.vue</h2>
  <zhtt-card title="$forceUpdate">
    loginUser：<span>{{loginUser}}</span><br/>
    loginUser：<span v-once>{{loginUser}}</span> <b>这个里面不更新</b><br/>
    <button class="zhtt-btn" @click="updateName">更新name</button>
  </zhtt-card>
</template>

<script>
export default {
  data(){
    return {
      loginUser:{name:'张三'}
    }
  },
  methods:{
    updateName(){
      this.loginUser.age=Math.random();
      this.loginUser.name=Math.random();
    }
  }
}
</script>
